import matplotlib.pyplot as plt
import numpy as np

plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False


theta = np.linspace(0, 2 * np.pi, 500)
r = abs(np.sin(theta))

plt.figure(figsize=(8, 8))
ax = plt.subplot(111, projection='polar')
ax.plot(theta, r)

plt.title('极坐标图示例')
plt.show()
